<?php

namespace app\api\controller;
use data\Json;
use think\Request;
use think\Cache;
use JPush\Client as JPush;
/**
 * 社群
 */
class Community extends Base
{
    protected $user_model = null;
    protected $token = null;

    public function _initialize()
    {
        $this->user_model = model('User');
        $this->token = request()->header('token');
        $user = $this->user_model->getUserInfo($this->token);
        if(!$user)return Json::json_send(1);
    }

    // 社群首页
    public function home()
    {

    }

    /* step=1 :提交基本信息
     * step=1 :提交选择活动
     */
    public function activities(Request $request)
    {
        if($request->isPost())
        {
        }
    }

}
